<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <link type="text/css" rel="stylesheet" href="css/personal.css"/>
    <script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript" src="js/personal.js"></script>
    <title>个人中心-我的简历</title>
    <script type="text/javascript">
        $(document).ready(function () {
            var userInfo = null;
            var params = new URLSearchParams(window.location.search);
            var username = params.get("username");
            var password = params.get("amp;password");
            $.get("information/select",
                {
                    "password": password,
                    "username": username
                }, function (user1) {
                    userInfo = user1.result;
                    $("#phone").text(userInfo.number);
                });
            $("#ok").click(function () {
                var name = $("[name='username']").val();
                var sex = "男";
                var birthday = $("[name='birthday']").val();
                var nowplace = $("[name='nowplace']").val();
                var bornplace = $("[name='bornplace']").val();
                var growplace = $("[name='growplace']").val();
                var status = $("[name='status']").val();
                var experience = $("#status").val();
                var nature = $("#nature").val();
                var salary = $("#salary").val();
                var workplace = $("[name='workplace']").val();
                var category = $("[name='category']").val();
                var schoolname = $("[name='schoolname']").val();
                var graduatetime = $("[name='graduatetime']").val();
                var degree = $("[name='degree']").val();
                var degreetype = $("[name='degreetype']").val();
                var speciality = $("[name='speciality']").val();
                var specialitytype = $("[name='specialitytype']").val();
                var email = $("[name='email']").val();


                var number = userInfo.number;
                var id = userInfo.id;
                $("#sex1").click(function () {
                    sex = "男";
                });
                $("#sex2").click(function () {
                    sex = "女";
                });


                $.get("information/finish",
                    {
                        "id": id,
                        "name": name,
                        "sex": sex,
                        "birthday": birthday,
                        "nowplace": nowplace,
                        "bornplace": bornplace,
                        "growplace": growplace,
                        "status": status,
                        "experience": experience,
                        "nature": nature,
                        "salary": salary,
                        "workplace": workplace,
                        "category": category,
                        "schoolname": schoolname,
                        "graduatetime": graduatetime,
                        "degree": degree,
                        "degreetype": degreetype,
                        "speciality": speciality,
                        "specialitytype": specialitytype
                    },
                    function (rs) {
                        var mess = rs.result;
                        alert(mess);
                    });

                $.get("information/update",
                    {
                        "email": email,
                        "password": password,
                        "number": number,
                        "username": username
                    },
                    function () {
                    });

            });
        });


    </script>

</head>

<body>
<div class="header">
    <div class="headerMain">
        <div class="Notice">
        </div>
        <div class="Account">
            <div class="Left">
                <div class="Info">
                    <font>[28421947]</font>
                    <input type="button">
                    <div id="InfoPopup">
                        <ul>
                            <li><a href="index.html">退出</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="navTop">
    <div class="navTopmain">
        <div class="logo"><a href="index.html"><img src="images/logo_1.png"/><img src="images/logo_2.png"/></a></div>
    </div>
</div>
<div class="personalBody">
    <div id="base_div" class="perRightcon">
        <div class="JlBoxTit">
            <p class="tit1">基本资料/求职意向</p>
            <div class="tit2"></div>
            <p class="tit3">最高学历</p>
        </div>
        <div class="JlBoxCon">
            <h1><span>基本信息</span>
                <div></div>
            </h1>
            <div class="JlBoxLeft">
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>姓 名：</div>
                    <div class="inputtxt">
                        <input name="username" type="text" class="txt1"/>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>性 别：</div>
                    <div class="inputtxt">
                        <div id="sex1" class="sex on">男</div>
                        <div id="sex2" class="sex">女</div>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>出生年月：</div>
                    <div class="inputtxt">
                        <input name="birthday" type="date" class="txt8"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>现居住地：</div>
                    <div class="inputtxt">
                        <input name="nowplace" type="text" class="txt7"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>户口所在地：</div>
                    <div class="inputtxt">
                        <input name="bornplace" type="text" class="txt7"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>我成长在：</div>
                    <div class="inputtxt">
                        <input name="growplace" type="text" class="txt7"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>手机号码：</div>
                    <div class="inputtxt">
                        <span class="phone" id="phone">152*******56</span>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>电子邮箱：</div>
                    <div class="inputtxt">
                        <input name="email" type="text" class="txt3"/>
                        <b>可用来登录</b>
                    </div>
                </div>
            </div>
        </div>
        <div class="clear"></div>
        <div class="JlBoxCon">
            <h1><span>求职意向</span>
                <div></div>
            </h1>
            <div class="JlBoxLeft">
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>求职状态：</div>
                    <div class="inputtxt">
                        <select class="txtcon txt2" name="status">
                            <option value="离职-随时到岗">离职-随时到岗</option>
                            <option value="在职-月内到岗">在职-月内到岗</option>
                            <option value="在职-考虑机会">在职-考虑机会</option>
                            <option value="在职-暂不考虑">在职-暂不考虑</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>相关工作经验：</div>
                    <select id="status" class="inputtxt">
                        <option value="有">有</option>
                        <option value="无">无</option>

                    </select>
                    <!--<div class="inputtxt">
                        <div id="you" class="typeJob on">有</div>
                        <div id="wu" class="typeJob">无</div>
                        <div class="clear"></div>
                    </div>-->
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>期望工作性质：</div>
                    <select id="nature" class="inputtxt">
                        <option value="全职">全职</option>
                        <option value="兼职">兼职</option>
                        <option value="实习">实习</option>
                    </select>
                    <!-- <div class="inputtxt" >
                         <div id="nature1" class="typeJob on">全职</div>
                         <div id="nature2" class="typeJob">兼职</div>
                         <div id="nature3" class="typeJob">实习</div>
                         <div class="clear"></div>
                     </div>-->
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>期望月薪：</div>
                    <div class="inputtxt">
                        <select class="txtcon txt2" id="salary">
                            <option value="面议">面议</option>
                            <option value="30000以上">30000以上</option>
                            <option value="20000-30000">20000-30000</option>
                            <option value="10000-20000">10000-20000</option>
                            <option value="5000-10000">5000-10000</option>
                            <option value="5000以下">5000以下</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>期望工作地点：</div>
                    <div class="inputtxt">
                        <input name="workplace" type="text" class="txt7"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>期望职位类别：</div>
                    <div class="inputtxt">
                        <input name="category" type="text" class="txt7"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <button id="next_btn" class="nextBtn">进一步完善</button>
                </div>
            </div>
        </div>
    </div>
    <div id="education_div" class="perRightcon" hidden>
        <div class="JlBoxTit">
            <p class="tit1">基本资料/求职意向</p>
            <div class="tit2"></div>
            <p class="tit3 on">最高学历</p>
        </div>
        <div class="JlBoxCon">
            <h1><span>最高学历</span>
                <div></div>
            </h1>
            <div class="JlBoxLeft">
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>学校名称：</div>
                    <div class="inputtxt">
                        <input name="schoolname" type="text" class="txt3"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>毕业时间：</div>
                    <div class="inputtxt">
                        <input id="graduation_time" name="graduatetime" type="date" class="txt8"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>学历：</div>
                    <div class="inputtxt">
                        <select class="txtcon txt2" name="degree">
                            <option value="初中及一下">初中及一下</option>
                            <option value="中专/中技">中专/中技</option>
                            <option value="高中">高中</option>
                            <option value="大专">大专</option>
                            <option value="硕士">硕士</option>
                            <option value="本科">本科</option>
                            <option value="博士">博士</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>学历类型：</div>
                    <div class="inputtxt">
                        <select class="txtcon txt2" name="degreetype">
                            <option value="普通高等教育（统招）">普通高等教育（统招）</option>
                            <option value="普通专升本（统招）">普通专升本（统招）</option>
                            <option value="成人高考">成人高考</option>
                            <option value="自考">自考</option>
                            <option value="电大">电大</option>
                            <option value="网络教育">网络教育</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>专业名称：</div>
                    <div class="inputtxt">
                        <input name="speciality" type="text" class="txt3"/>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <div class="nametxt"><span>*</span>专业类别：</div>
                    <div class="inputtxt">
                        <select class="txtcon txt2" name="specialitytype">
                            <option value="哲学">哲学</option>
                            <option value="经济学">经济学</option>
                            <option value="法学">法学</option>
                            <option value="教育学">教育学</option>
                            <option value="文学">文学</option>
                            <option value="历史学">历史学</option>
                            <option value="理学">理学</option>
                            <option value="工学">工学</option>
                            <option value="农学">农学</option>
                            <option value="医学">医学</option>
                            <option value="军事学">军事学</option>
                            <option value="管理学">管理学</option>
                            <option value="艺术学">艺术学</option>
                        </select>
                    </div>
                </div>
                <div class="clear"></div>
                <div class="jldiv">
                    <button id="ok" class="saveBtn">填写完毕</button>
                    <button id="previous_btn" class="preBtn">上一步</button>
                </div>
            </div>
        </div>
    </div>
</div>


<div class="clear"></div>
<div class="footer">
</div>
</body>
<script type="text/javascript" src="js/jquery-1.12.4.min.js"></script>
<script>
    $(function () {
        $("#next_btn").on("click", function () {
            $("#base_div").hide();
            $("#education_div").show();
        });
        $("#previous_btn").on("click", function () {
            $("#base_div").show();
            $("#education_div").hide();
        });
    });
</script>
</html>
